package si.ibloc.cms.home;

import org.jboss.seam.annotations.Name;
import si.ibloc.cms.model.File;

@Name("fileHome")
public class FileHome extends ContentHome<File> {

	public void setFileId(Integer id) {
		setId(id);
	}

	public Integer getFileId() {
		return (Integer) getId();
	}

	@Override
	protected File createInstance() {
		return new File();
	}

	public boolean isWired() {
		return true;
	}

	public File getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
